<h1>EVALUACIÓN DE PROPIETARIOS</h1>
<div class="paging">
    <?php
    echo $this->Paginator->options(array('update' => '#content', 'evalScripts' => false));
    echo $this->Paginator->prev('< ' . __('Anterior'), array(), null, array('class' => 'prev disabled'));
    echo $this->Paginator->numbers(array('separator' => ''));
    echo $this->Paginator->next(__('Siguiente') . ' >', array(), null, array('class' => 'next disabled'));
    ?>
</div>
<table>
    <thead>
        <tr>
            <th><?php echo $this->Paginator->sort('OwnerEvaluation.id', 'Id'); ?></th>
            <th><?php echo $this->Paginator->sort('Owner.nombres', 'Nombres'); ?></th>
            <th><?php echo $this->Paginator->sort('Owner.nombres', 'Primer_apellido'); ?></th>
            <th><?php echo $this->Paginator->sort('OwnerEvaluation.concepto', 'Concepto'); ?></th>
            <th><?php echo $this->Paginator->sort('OwnerEvaluation.calificacion', 'Calificación'); ?></th>
            <th colspan="2"></th>
        </tr>
    </thead>
    <tbody>
<?php foreach ($OwnerEvaluations as $OwnerEvaluation): ?>
            <tr>
                <td><?php echo $OwnerEvaluation['OwnerEvaluation']['id']; ?></td>
                <td><?php echo $OwnerEvaluation['Owner']['nombres']; ?></td>
                <td><?php echo $OwnerEvaluation['Owner']['primer_apellido']; ?></td>
                <td><?php echo $OwnerEvaluation['OwnerEvaluation']['concepto']; ?></td>
                <td><?php echo $OwnerEvaluation['OwnerEvaluation']['calificacion']; ?></td>
                <td><?php echo $this->Ajax->link('Editar', array('controller' => 'OwnerEvaluations', 'action' => 'edit', $OwnerEvaluation["OwnerEvaluation"]["id"]), array('update' => 'content', 'indicator' => 'loading', 'complete' => 'formularioAjax()')); ?></td>
                <td><?php echo $this->Ajax->link('Eliminar', array('controller' => 'OwnerEvaluations', 'action' => 'delete', $OwnerEvaluation["OwnerEvaluation"]["id"], $owner_id), array('update' => 'content', 'indicator' => 'loading'), '¿Desea eliminar el registro?'); ?></td>
            </tr>
<?php endforeach; ?>
    </tbody>
</table>
<?php echo $this->Js->writeBuffer(); ?>
<br>		<?php if (count($OwnerEvaluations) < 1) echo $this->Ajax->link('Adicionar', array('controller' => 'OwnerEvaluations', 'action' => 'add', $owner_id), array('update' => 'content', 'indicator' => 'loading'), '¿Desea crear un nuevo registro?'); ?>
<br>
<?php
echo $this->Ajax->link($this->Html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'owners', $property_id, 'action' => 'index'), array('update' => 'content', 'indicator' => 'loading', 'escape' => false));
?>